<?php echo($this->Html->script('admin/usuaris')); ?>
<?php echo($this->Html->script('admin/encrypt')); ?>
                            <!-- Input addon -->
                    <div class="row" >
                        <!-- right column -->
                        <div class="col-md-12">                             
                            
                            <div class="box box-info ">

                                <div class="box-body">

                        
                                    <h4>Nom Usuari</h4>
				                       <div class="input-group">
				                            <div class="input-group-btn">
				                                <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown">Acció <span class="fa fa-caret-down"></span></button>
				                                <ul class="dropdown-menu">
				                                    <li><a href="javascript:habilitar_input('.nom_usuari');">Modificar</a></li>
				                                    <li><a href="javascript:netejar_input('.nom_usuari');">Netejar</a>
				                                	<li><a href="javascript:modificar_nom_usuari('<?php echo($this->Session->Read('nom_usuari'));?>',mail.value,mail2.value);">Guardar</a></li>
				                            	</ul>
				                            </div><!-- /btn-group -->
				                            <div class="col-xs-5">
				                               	<input type="text" id="mail" placeholder="<?php echo($this->Session->read('nom_usuari'));?>" disabled="disabled"  class="form-control nom_usuari">
											</div>
				                    	</div><!-- /input-group -->     
				                	
                                    
                                    <h4>Contrasenya</h4>
                                    <div class="input-group ">
                                        <div class="input-group-btn">
                                            <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown">Acció <span class="fa fa-caret-down"></span></button>
                                            <ul class="dropdown-menu">
                                                <li><a href="javascript:habilitar_input('.pass_user');">Modificar</a></li>
                                            	<li><a href="javascript:netejar_input('.pass_user');">Netejar</a>
                                                <li><a href="javascript:modificar_contrasenya_usuari('<?php echo($this->Session->Read('id_usuari'));?>',pass.value,pass2.value);">Guardar</a></li>
                                            </ul>
                                        </div><!-- /btn-group -->
                                        <div class="col-xs-5">
                                       		 <input type="password" id="pass"  placeholder="***************" disabled="disabled"  class="form-control pass_user">
                                       		 
										</div>
										 <div class="col-xs-5">
                                       		 <input type="password" id="pass2"  placeholder="***************" disabled="disabled"  class="form-control pass_user">
										</div>
                                    </div><!-- /input-group -->
                                    
                                    
                                    
                        <h4>Mail</h4>
                       <div class="input-group">
                            <div class="input-group-btn">
                                <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown">Acció <span class="fa fa-caret-down"></span></button>
                                <ul class="dropdown-menu">
                                    <li><a href="javascript:habilitar_input('.mail_user');">Modificar</a></li>
                                    <li><a href="javascript:netejar_input('.mail_user');">Netejar</a>
                                	<li><a href="javascript:modificar_mail_usuari('<?php echo($this->Session->Read('id_usuari'));?>',mail.value,mail2.value);">Guardar</a></li>
                            	</ul>
                            </div><!-- /btn-group -->
                            <div class="col-xs-5">
                               	<input type="text" id="mail" placeholder="<?php echo($this->Session->read('mail_usuari'));?>" disabled="disabled"  class="form-control mail_user">
							</div>
							<div class="col-xs-5">
                            	<input type="text" id="mail2" placeholder="<?php echo($this->Session->read('mail_usuari'));?>" disabled="disabled"  class="form-control mail_user">
							</div>			
                    	</div><!-- /input-group -->     
                	</div><!-- /.box-body -->
            	</div><!-- /.box -->
			</div>
		</div>

